package com.briup.common.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class TblCategory implements Serializable {
    private BigDecimal id;

    private BigDecimal code;

    private String name;
    
    private List<TblArticle> articles ;

    public List<TblArticle> getArticles() {
		return articles;
	}

	public void setArticles(List<TblArticle> articles) {
		this.articles = articles;
	}

	private static final long serialVersionUID = 1L;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getCode() {
        return code;
    }

    public void setCode(BigDecimal code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}